<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>S6办公系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script language="javascript" type="text/javascript"
		src="/jboa/web/js/jquery.min.js"></script>
		<style type="text/css">
.t {
	background-color: blue;
}
div{
overflow-y: scroll;
overflow-x: hidden;
height: 200px;
margin-top: 5px;
margin-left: 12px;
padding-top: -2px;
padding-bottom: 5px;
border: 3px solid #009933;
}
table{
width: 100%;
border-color: #d2f1ac;
border-collapse: collapse;
border-top: 0px solid #ffffff;
}
.fixedtd{
position: relative;
z-index: 1;
background: #009933;
text-align: center;
} 
</style>
			<script type="text/javascript">
	//全选和全不选 
	$(function() {
		//光棒效果
		$("table tr").mouseover(function(){
		   $(this).addClass("t");			
		}).mouseout(function(){
		$(this).removeClass("t");
		});
		
	
	});

	 
</script>
  </head>

<body style="background-color:#D6D3C9" >
<h3 style="text-align:center">部门管理</h3>
<hr style="border:solid 1px;">
<div>
<table border="1" cellpadding="0" cellspacing="0" style="text-align:center">
  <tr>
    <td  class="fixedtd">部门名称</td>
    <td  class="fixedtd">机构</td>
    <td  class="fixedtd">负责人</td>
    <td  class="fixedtd">电话</td>
    <td  class="fixedtd">操作</td>
  </tr>
  <s:iterator value="list_department">
  <tr>
    <td><s:property value="name"/></td>
    <td><s:property value="branchinfo.name"/></td>
     <td><s:property value="userinfo.name"/></td>
      <td><s:property value="userinfo.phone"/></td>
    <td><input type="image" src="web/web/images/delete.gif" onclick="location.href='departmentdel.action?bid=<s:property value='id'/>'"/><input type="image" src="web/web/images/edit.gif" onclick="location.href='jboa/findByiddepartmenta.action?bid=<s:property value='id'/>'" />
   ${session.mesage}
    </td>
  </tr>
</s:iterator>
</table>
</div>
</body>
</html>